<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-3-9
 * Time: 上午9:43
 */

namespace common\models;

/**
 * Class FileListDownloadLog
 * @package common\models
 *
 * @property FileListInfo $fileListInfo
 * @property FileListNotice $fileListNotice
 */
class FileListDownloadLog extends \common\models\base\FileListDownloadLog
{
    const IS_SUCCESS_TRUE = 1;
    const IS_SUCCESS_FALSE = 0;

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getFileListInfo()
    {
        return $this->hasOne(FileListInfo::className(), ['id' => 'file_list_info_id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getFileListNotice()
    {
        return $this->hasOne(FileListNotice::className(), ['id' => 'file_list_notice_id']);
    }
}